package com.bw.module_my.adapter

import android.widget.ImageView
import com.bumptech.glide.Glide
import com.bw.module_my.R
import com.bw.module_my.entity.MyEntity
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class MyAdapter: BaseQuickAdapter<MyEntity, BaseViewHolder>(R.layout.item_my) {
    override fun convert(holder: BaseViewHolder, item: MyEntity) {
        var img = holder.getView<ImageView>(R.id.item_mine_img)
        Glide.with(img).load(item.img).into(img)
        holder.setText(R.id.item_mine_tv,item.title)
    }
}